package com.dingup.paike.bean.aobean;

import com.dingup.paike.bean.querybean.TimeInterval;

import java.util.List;

/**
 * Created by wancheng on 2018/12/4.
 */
public class TeacherAvailableTimeGroup {

    private String day;
    private String teacherName;
    private List<TimeInterval> timeIntervals;

    public TeacherAvailableTimeGroup() {
    }

    public TeacherAvailableTimeGroup(String day, String teacherName) {
        this.day = day;
        this.teacherName = teacherName;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public List<TimeInterval> getTimeIntervals() {
        return timeIntervals;
    }

    public void setTimeIntervals(List<TimeInterval> timeIntervals) {
        this.timeIntervals = timeIntervals;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TeacherAvailableTimeGroup that = (TeacherAvailableTimeGroup) o;

        if (!day.equals(that.day)) return false;
        return teacherName.equals(that.teacherName);

    }

    @Override
    public int hashCode() {
        int result = day.hashCode();
        result = 31 * result + teacherName.hashCode();
        return result;
    }
}
